<?php if (! defined('APPPATH')) die('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| HTML FORM VALIDATOR RULES
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
| 
| -------------------------------------------------------------------------
| FORMAT
| -------------------------------------------------------------------------
| 
| $validator['html_form']['form_field1'] = array(
|		array('regExpr_pattern_01', 'MESSAGE_KEY_INTO_LANGUAGES_FILE'),
		...........
|		array('regExpr_pattern_(N)', 'MESSAGE_KEY(N)_INTO_LANGUAGES_FILE'),
|	);
| 
| Parameters as input:
| 	[1] HTML FORM alias
| 	[2] HTML FORM field name
| 
| rules can be passed an array
|	array('regExpr_pattern', 'LANGUAGE_MESSAGE_KEY')
|
| For one field can be many rules.	
|
|*/



$validator['form']['username'] = array(
		array('/^(\w){6,16}$/i',     'FIELD_LENGTH'),
		array('/^[a-z0-9]{6,16}$/i', 'FIELD_DISALLOW'),
	);
	
	
	
	
	
	
/*
| -------------------------------------------------------------------
|  IMPORTANT !!!
| -------------------------------------------------------------------
| Defined array <$validator> must be returned !!!
|
| Don`t forget add this code into your own any config files !!!
| Don`t delete next code row!!!
|
*/
return $validator;

/* End of file validator.php */
/* Location: ./application/config/validator.php */
